package com.example.messagewall.Service;

import com.example.messagewall.Mapper.MessageInfoMapper;
import com.example.messagewall.Model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageInfoService {
    @Autowired
    private MessageInfoMapper messageInfoMapper;

    public List<MessageInfo> selectAll(){
        return messageInfoMapper.selectAll();
    }

    public Integer insert2(MessageInfo messageInfo){
        return messageInfoMapper.insert1(messageInfo);
    }
}
